package Model
{
	public class ComplexShading extends SimpleShading
	{
		private var _xAxis:Number = 0;
		private var _yAxis:Number = 0;
		private var _alpha:Number = 0;
		private var _x1:Number;
		private var _y1:Number;
		private var _x2:Number;
		private var _y2:Number;
		
		public function ComplexShading(direction:String)
		{
			super(direction);
		}
		
		protected function calculateAlpha():void
		{
			this._alpha = (Math.atan2(this._yAxis, this._xAxis))*(180/Math.PI);
		}
		
		public override function calculateShadingFactor():void{};
		
		public function get alpha():Number
		{
			return _alpha;
		}

		public function set alpha(value:Number):void
		{
			_alpha = value;
		}

		public function get yAxis():Number
		{
			return _yAxis;
		}

		public function set yAxis(value:Number):void
		{
			_yAxis = value;
		}

		public function get xAxis():Number
		{
			return _xAxis;
		}

		public function set xAxis(value:Number):void
		{
			_xAxis = value;
		}


	}
}